<template>
  <div class="shengmu5 base-background-img">
    <div class="zh" @click="playFun(zh)">
        <img src="~@/assets/youxiaoxianjie/shengmu/5/zh.png">
    </div>
    <div class="ch" @click="playFun(ch)">
        <img src="~@/assets/youxiaoxianjie/shengmu/5/ch.png">
    </div>
    <div class="sh" @click="playFun(sh)">
        <img src="~@/assets/youxiaoxianjie/shengmu/5/sh.png">
    </div>
    <div class="r" @click="playFun(r)">
        <img src="~@/assets/youxiaoxianjie/shengmu/5/r.png">
    </div>
    <c-pdf @closePdf="closePdf" v-if="isshowpdf" :info="info" :infourl="pdfurl"></c-pdf>
  </div>
</template>

<script>
  export default {
    name: 'shengmu5',
    data () {
      return {
        isshowpdf: false,
        infourl: '',
        info: '',
        zh: {
          url: 'static/youxiao/pdf/shengmu/zh.pdf',
          data: []
        },
        ch: {
          url: 'static/youxiao/pdf/shengmu/ch.pdf',
          data: []
        },
        sh: {
          url: 'static/youxiao/pdf/shengmu/sh.pdf',
          data: []
        },
        r: {
          url: 'static/youxiao/pdf/shengmu/r.pdf',
          data: []
        }
      }
    },
    methods: {
      playFun: function (item) {
        console.log(item)
        this.isshowpdf = true
        this.pdfurl = item.url
        this.info = item.data
      },
      closePdf: function () {
        this.isshowpdf = false
      }
    }
  }
</script>

<style scoped>
.shengmu5 {
  background: url(~@/assets/youxiaoxianjie/shengmu/5/bg.png);
}
.shengmu5 > div {
  position: absolute; 
}
.zh {
  top: 275px;
  left: 200px;
}
.ch {
  top: 278px;
  left: 485px;
}
.sh {
  top: 280px;
  left: 735px;
}
.r {
  top: 275px;
  left: 1020px;
}
</style>
